﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace DAMS.Web.Areas.Manage.Models
{
    public class TagCreateViewModel
    {
        [Required(ErrorMessage ="标签名称必须填写")]
        [StringLength(8, ErrorMessage = "超出标签允许最大长度")]
        [Display(Name = "标签名称")]
        [Remote(action: "Verify",controller:"Tag",areaName:"Manage")]
        public string TagName { get; set; }

        public int ID { get; set; }
    }
}
